package com.zjxmyq.authorization.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

@Data
public class BaseDomain {
    @Column(comment = "创建时间",defaultValue = "CURRENT_TIMESTAMP" )
    private Timestamp createdAt;
    @Column(comment = "更新时间",defaultValue = "NULL ON UPDATE CURRENT_TIMESTAMP")
    private Timestamp updatedAt;
    @Column(comment = "删除时间")
    private Timestamp deletedAt;
    @Column(comment = "软删除")
    private int deleted;

}
